<template>
	<div id='have-authen' @click='changeName'>
		<p>
			<span style='font-weight:600;'>实名认证</span>
		</p>
		<p>
			<span>{{name}}</span>&nbsp;&nbsp;
			<span>{{changeNum}}</span>
		</p>
		<!-- <span class='fa fa-angle-right icon-right'></span> -->
	</div>
</template>

<script>
	export default {
		props:['name','num'],
		methods:{
			changeName(){
				// this.$emit('changeName');
			},
		},
		computed:{
			changeNum(){
				let num=String(this.num);
				return num.slice(0,4)+'**********'+num.slice(num.length-4);
			}
		}
	}
</script>

<style scoped>
	#have-authen{
		height:75px;
		background: white;
		text-indent:1rem;
		position: relative;
	}
	#have-authen p:first-of-type{
		padding-top: 15px;
	}
	#have-authen p:last-of-type{
		line-height: 30px;
    	color: #9d9d9d;
	}
</style>